import request from '@/util/ajax.js'

export function getGroupsAPI(reqData) {
  return request({
    url: '/back_front/groups/getService',
    method: 'get',
    params: reqData
  })
}

export function getGroupsAllAPI() {
  return request({
    url: '/back_front/groups/getAllService',
    method: 'get'
  })
}

export function createGroupAPI(reqData) {
  return request({
    url: '/back_front/groups/createService',
    method: 'post',
    data: reqData
  })
}

export function editGroupAPI(reqData) {
  return request({
    url: '/back_front/groups/editService',
    method: 'post',
    data: reqData
  })
}

export function delGroupAPI(reqData) {
  return request({
    url: '/back_front/groups/delService',
    method: 'post',
    data: reqData
  })
}
